truncate

suspend fun truncate(collection: String): Boolean

Deletes all the records of a single collection (including their related files and cascade delete enabled relations).

Only superusers can perform this action.

Parameters

collection

ID or name of the collection to truncate.